<?php

namespace app\api\validate\common;

use app\common\validate\BaseValidate;

class LoginValidate extends BaseValidate
{
    protected $rule = [
        "username|用户名" => 'require',
        "password|密码" => 'require',
        "login_type|登录类型" => "require|in:password,code"
    ];

    protected $message = [
    ];
    
    
    protected $scene = [
        "login" => ["username","password","login_type"],
    ];
}